//: PaymentFormValidator.java 01.10.2008 15:08:45Z apt $
package com.devunion.salon.ajax.validator;

import com.devunion.salon.web.form.PaymentForm;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

/**
 * @author Timoshenko Alexander
 */
public class PaymentFormValidator implements Validator {
    public boolean supports(Class clazz) {
        return PaymentForm.class.isAssignableFrom(clazz);
    }

    public void validate(Object obj, Errors errors) {
        if(this.supports(obj.getClass())){
            PaymentForm form = (PaymentForm)obj;
        }
    }
}
